<?
    session_start();
    if($_SESSION['id_member'] == "")
    {
        echo "  <script language='javascript'>
                    alert('Please Login.');
                    window.location='../index.php';
                    </script>
            ";
        exit();
    }
 
?>